﻿using System;
using System.Xml.Serialization;

namespace DE.Sdc.SharePoint.Common.Deployment.Administration
{
    [SerializableAttribute]
    [System.Diagnostics.DebuggerStepThroughAttribute]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [XmlTypeAttribute(AnonymousType = true, Namespace = "namespace1")]
    public class Item
    {

        private string _name;
        private string _value;

        /// <summary>
        /// Default constructor
        /// </summary>
        public Item()
        {
        }

        /// <summary>
        /// Constructor with name and value
        /// </summary>
        /// <param name="name">Name of the item</param>
        /// <param name="value">Value of the item</param>
        public Item(string name, string value)
        {
            _name = name;
            _value = value;
        }

        [XmlAttribute(AttributeName = "ItemName", DataType = "string")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [XmlAttribute(AttributeName = "ItemValue", DataType = "string")]
        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}
